class ObstaclesCreator
!!!145794.java!!!	init(in host : String, inout port : Integer, inout s : Integer) : void
		try {
			this.host = InetAddress.getByName(host);
			this.port = new Integer(port);
			this.size = s;

			this.values = new ArrayList<Integer>();
			this.socket = new Socket(this.host, this.port);

			this.entry = new DataInputStream(this.socket.getInputStream());

		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
!!!145922.java!!!	activate(inout  : Object...params) : Status
		init("localhost", 6500, 0);
		
		if(Config.DEBUG == true)
			System.out.println("Le role ObstacleCreator est initialisé");
		
		return StatusFactory.ok(this);
!!!146050.java!!!	live() : Status
		this.currentState = run();
		return StatusFactory.ok(this);
!!!146178.java!!!	run() : State
		switch(this.currentState) {
			case WHERE_ARE_THEY :
				try {
					ArrayList<Integer> tmpValues = new ArrayList<Integer>();
					for (int i = 0; i < this.size + 1; ++i) {
						if (simulate) {
							//Valeur simulée :
							
							int toto = entry.readInt();
							tmpValues.add(toto);
						} else {
							//Sera utile pour connecter au télémetre.
							
							Byte v1 = entry.readByte();
							Byte v2 = entry.readByte();
							Integer val1 = v1.intValue();
							Integer val2 = v2.intValue();
							Integer val;
							if (val1 < 0)
								val1 += 256;
							val = val1 + val2 * 256;
							tmpValues.add(val);
						}
					}
					this.values = tmpValues;
					System.out.println(this.values);
				} catch (IOException e) {
					e.printStackTrace();
				}
				return State.MOVE;
			case MOVE : 
					broadcastMessage(Obstacle.class, new ObstaclesPosition(this.values));
				return State.WHERE_ARE_THEY;
		}
		return State.WHERE_ARE_THEY;
